;;; (Index bufnum in)

;;; Index into a table with a signal.  The input signal value is
;;; truncated to an integer value and used as an index into the table.
;;; Out of range index values are clipped to the valid range.

;; Allocate and set values at buffer 10.

(-> '/b_alloc 10 6 1)

(-> '/b_setn 10 0 6 50 100 200 400 800 1600)

;; Index into the above buffer for frequency values.

(SinOsc.ar (Index.kr 10 (LFSaw.kr 2 3 4)) 0 0.1)

(-> '/b_free 10)
